﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Entities
{
    public partial class Commande
    {
        //wrappers
        public TypePlat getEtatCommande()
        {
            switch (this.EtatCommande)
            {
                case "Entrée":
                    return TypePlat.Entrée;
                case "PlatPrincipal":
                    return TypePlat.PlatPrincipal;
                case "Dessert":
                    return TypePlat.Dessert;
                default:
                    return TypePlat.Autres;
            }
        }
        public void setEtatCommande(TypePlat typePlat)
        {
            this.EtatCommande = typePlat.ToString();
        }
    }
}
